package com.ln.design.mode.proxy.statics;

import com.ln.design.mode.proxy.SmsService;

/**
 * @Description SmsProxy
 * @Author zhangj
 * @Date 2022/11/29 22:55
 */
public class SmsProxy implements SmsService {

    public final SmsService smsService;

    public SmsProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String message) {
        System.out.println("发送消息之前...");
        smsService.send(message);
        System.out.println("发送消息之后");
        return null;
    }
}
